<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>选择器</title>
    
    <style>
        span{
            font-size: 120px
        }
        .blue{
            color: blue
        }
        .red{
            color:crimson
        }
        .yellow{
            color:gold
        }
        .green{
            color:green
        }

         span:link{
            color: cadetblue;
        }

        /* 超链接被访问后 */
        span:visited{
            color: orange;
        }
        
        /* :hover 、 :active 行为伪类选择器 */
        /* 鼠标悬浮在超链接上 */
        span:hover{
            background-color: lightcoral;
        }   
        
        /* 鼠标点击超链接时 */
        span:active{
            background-color: royalblue;
        }
    </style>
</head>
<body>
    <span class="blue">G</span>
    <span class="red">o</span>
    <span class="yellow">o</span>
    <span class="blue">g</span>
    <span class="green">l</span> 
    <span class="red">e</span>
    
</body>
</html>